Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html script element supports method #7008

Merged
merged 8 commits into from
Sep 3, 2021

Conversation

horo-t
Copy link
Contributor

@horo-t horo-t commented Sep 2, 2021

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/infrastructure.html ( diff )
/scripting.html ( diff )

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good to me, modulo some minor nits.

Let's also add a domintro section, even though only script.text has one so far.

source Outdated Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
Copy link
Contributor Author

@horo-t horo-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

source Outdated Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
horo-t added a commit to horo-t/import-maps that referenced this pull request Sep 2, 2021
The script.supports() method will be introduced by
whatwg/html#7008.
script.supports('importmap') must return true when supported.

Fixes WICG#171
horo-t added a commit to horo-t/alternate-loading-modes that referenced this pull request Sep 2, 2021
The script.supports() method will be introduced by whatwg/html#7008.
script.supports('speculationrules') must return true when supported.
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you! I'll let @domenic do a final check.

source Show resolved Hide resolved
source Show resolved Hide resolved
@hiroshige-g
Copy link
Contributor

Also looks good to me. +1 > @domenic for final check.

source Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
source Outdated
@@ -58589,6 +58591,30 @@ interface <dfn interface>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
<code data-x="dom-innerHTML">innerHTML</code> and <code data-x="dom-outerHTML">outerHTML</code>
attributes, they do not execute at all.</p>


<dl class="domintro">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally keep the domintro contents together. So I think you can merge this with the previous one for script.text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

source Show resolved Hide resolved
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait. I think this should be a static method, not an instance method. That is what #6472 proposed.

Copy link
Contributor Author

@horo-t horo-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait. I think this should be a static method, not an instance method. That is what #6472 proposed.

Ah, yes. Updated this PR to use static.

source Outdated
@@ -58589,6 +58591,30 @@ interface <dfn interface>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
<code data-x="dom-innerHTML">innerHTML</code> and <code data-x="dom-outerHTML">outerHTML</code>
attributes, they do not execute at all.</p>


<dl class="domintro">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

source Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
@hiroshige-g
Copy link
Contributor

Looks good.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merging!

@domenic domenic merged commit 33ff054 into whatwg:main Sep 3, 2021
@domenic
Copy link
Member

domenic commented Sep 3, 2021

@horo-t please remember to file Mozilla and WebKit bugs, and update the original post to link to them.

@horo-t
Copy link
Contributor Author

horo-t commented Sep 6, 2021

@horo-t please remember to file Mozilla and WebKit bugs, and update the original post to link to them.

Filed bugs and updated the original post.

horo-t added a commit to horo-t/import-maps that referenced this pull request Sep 6, 2021
The HTMLScriptElement.supports() method was introduced by
whatwg/html#7008.
HTMLScriptElement.supports('importmap') must return true when supported.

Fixes WICG#171
horo-t added a commit to horo-t/alternate-loading-modes that referenced this pull request Sep 6, 2021
The HTMLScriptElement.supports() method was introduced by whatwg/html#7008.
HTMLScriptElement.supports('speculationrules') must return true when supported.
domenic pushed a commit to horo-t/import-maps that referenced this pull request Sep 9, 2021
The HTMLScriptElement.supports() method was introduced by
whatwg/html#7008.
HTMLScriptElement.supports('importmap') must return true when supported.

Fixes WICG#171
domenic pushed a commit to WICG/import-maps that referenced this pull request Sep 10, 2021
The HTMLScriptElement.supports() method was introduced by whatwg/html#7008. This makes HTMLScriptElement.supports('importmap') return true.

Fixes #171.
horo-t added a commit to horo-t/html that referenced this pull request Sep 15, 2021
This PR reflects the feedback from the TAG review:
w3ctag/design-reviews#674

The original HTMLScriptElement.supports() was introduced by
whatwg#7008.
horo-t added a commit to horo-t/alternate-loading-modes that referenced this pull request Sep 21, 2021
The HTMLScriptElement.supports() method was introduced by whatwg/html#7008.
HTMLScriptElement.supports('speculationrules') must return true when supported.
jeremyroman pushed a commit to WICG/nav-speculation that referenced this pull request Sep 21, 2021
The HTMLScriptElement.supports() method was introduced by whatwg/html#7008.
HTMLScriptElement.supports('speculationrules') must return true when supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants